<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
/**
 *
 * 地区
 * @author 66diqiu-li
 *
 */
class Admin_area_model extends CI_Model
{
    private $table;
    
    static public $area = array(
        40002 => array('id' => '40002', 'name' => '中国', 'poi_code' => '00039000040002', 'code_level' => '2', 'district_type' => '3'),
        100 => array('id' => '100', 'name' => '安徽', 'poi_code' => '00400020000100', 'code_level' => '2', 'district_type' => '5'),
        103 => array('id' => '103', 'name' => '安庆', 'poi_code' => '004000200001000000103', 'code_level' => '3', 'district_type' => '0'),
        104 => array('id' => '104', 'name' => '蚌埠', 'poi_code' => '004000200001000000104', 'code_level' => '3', 'district_type' => '0'),
        106 => array('id' => '106', 'name' => '巢湖', 'poi_code' => '004000200001000000106', 'code_level' => '3', 'district_type' => '0'),
        109 => array('id' => '109', 'name' => '池州', 'poi_code' => '004000200001000000109', 'code_level' => '3', 'district_type' => '0'),
        107 => array('id' => '107', 'name' => '滁州', 'poi_code' => '004000200001000000107', 'code_level' => '3', 'district_type' => '0'),
        108 => array('id' => '108', 'name' => '阜阳', 'poi_code' => '004000200001000000108', 'code_level' => '3', 'district_type' => '0'),
        102 => array('id' => '102', 'name' => '合肥', 'poi_code' => '004000200001000000102', 'code_level' => '3', 'district_type' => '0'),
        110 => array('id' => '110', 'name' => '淮北', 'poi_code' => '004000200001000000110', 'code_level' => '3', 'district_type' => '0'),

        112 => array('id' => '112', 'name' => '淮南', 'poi_code' => '004000200001000000112', 'code_level' => '3', 'district_type' => '0'),
        113 => array('id' => '113', 'name' => '黄山', 'poi_code' => '004000200001000000113', 'code_level' => '3', 'district_type' => '0'),
        115 => array('id' => '115', 'name' => '六安', 'poi_code' => '004000200001000000115', 'code_level' => '3', 'district_type' => '0'),
        116 => array('id' => '116', 'name' => '马鞍山', 'poi_code' => '004000200001000000116', 'code_level' => '3', 'district_type' => '0'),

        117 => array('id' => '117', 'name' => '宿州', 'poi_code' => '004000200001000000117', 'code_level' => '3', 'district_type' => '0'),
        118 => array('id' => '118', 'name' => '铜陵', 'poi_code' => '004000200001000000118', 'code_level' => '3', 'district_type' => '0'),

        120 => array('id' => '120', 'name' => '芜湖', 'poi_code' => '004000200001000000120', 'code_level' => '3', 'district_type' => '0'),
        121 => array('id' => '121', 'name' => '宣城', 'poi_code' => '004000200001000000121', 'code_level' => '3', 'district_type' => '0'),
        105 => array('id' => '105', 'name' => '亳州', 'poi_code' => '004000200001000000105', 'code_level' => '3', 'district_type' => '0'),

        2002 => array('id' => '2002', 'name' => '澳门', 'poi_code' => '00400020002002', 'code_level' => '2', 'district_type' => '6'),
        200 => array('id' => '200', 'name' => '北京', 'poi_code' => '00400020000200', 'code_level' => '2', 'district_type' => '6'),
        300 => array('id' => '300', 'name' => '重庆', 'poi_code' => '00400020000300', 'code_level' => '2', 'district_type' => '6'),
        784452 => array('id' => '784452', 'name' => '璧山县', 'poi_code' => '004000200003000784452', 'code_level' => '3', 'district_type' => '0'),
        784472 => array('id' => '784472', 'name' => '彭水苗族土家族自治县', 'poi_code' => '004000200003000784472', 'code_level' => '3', 'district_type' => '0'),

        784458 => array('id' => '784458', 'name' => '石柱土家族自治县', 'poi_code' => '004000200003000784458', 'code_level' => '3', 'district_type' => '0'),
        784462 => array('id' => '784462', 'name' => '秀山土家族苗族自治县', 'poi_code' => '004000200003000784462', 'code_level' => '3', 'district_type' => '0'),
        784468 => array('id' => '784468', 'name' => '酉阳土家族苗族自治县', 'poi_code' => '004000200003000784468', 'code_level' => '3', 'district_type' => '0'),

        400 => array('id' => '400', 'name' => '福建', 'poi_code' => '00400020000400', 'code_level' => '2', 'district_type' => '5'),

        404 => array('id' => '404', 'name' => '龙岩', 'poi_code' => '004000200004000000404', 'code_level' => '3', 'district_type' => '0'),
        405 => array('id' => '405', 'name' => '南平', 'poi_code' => '004000200004000000405', 'code_level' => '3', 'district_type' => '0'),
        406 => array('id' => '406', 'name' => '宁德', 'poi_code' => '004000200004000000406', 'code_level' => '3', 'district_type' => '0'),

        407 => array('id' => '407', 'name' => '莆田', 'poi_code' => '004000200004000000407', 'code_level' => '3', 'district_type' => '0'),
        408 => array('id' => '408', 'name' => '泉州', 'poi_code' => '004000200004000000408', 'code_level' => '3', 'district_type' => '0'),
        409 => array('id' => '409', 'name' => '三明', 'poi_code' => '004000200004000000409', 'code_level' => '3', 'district_type' => '0'),

        414 => array('id' => '414', 'name' => '厦门', 'poi_code' => '004000200004000000414', 'code_level' => '3', 'district_type' => '0'),
        415 => array('id' => '415', 'name' => '漳州', 'poi_code' => '004000200004000000415', 'code_level' => '3', 'district_type' => '0'),
        500 => array('id' => '500', 'name' => '甘肃', 'poi_code' => '00400020000500', 'code_level' => '2', 'district_type' => '5'),
        503 => array('id' => '503', 'name' => '白银', 'poi_code' => '004000200005000000503', 'code_level' => '3', 'district_type' => '0'),
        504 => array('id' => '504', 'name' => '定西', 'poi_code' => '004000200005000000504', 'code_level' => '3', 'district_type' => '0'),
        506 => array('id' => '506', 'name' => '甘南', 'poi_code' => '004000200005000000506', 'code_level' => '3', 'district_type' => '0'),
        516 => array('id' => '516', 'name' => '嘉峪关', 'poi_code' => '004000200005000000516', 'code_level' => '3', 'district_type' => '0'),

        507 => array('id' => '507', 'name' => '金昌', 'poi_code' => '004000200005000000507', 'code_level' => '3', 'district_type' => '0'),
        508 => array('id' => '508', 'name' => '酒泉', 'poi_code' => '004000200005000000508', 'code_level' => '3', 'district_type' => '0'),

        784352 => array('id' => '784352', 'name' => '安西县', 'poi_code' => '0040002000050000005080784352', 'code_level' => '4', 'district_type' => '0'),
        502 => array('id' => '502', 'name' => '兰州', 'poi_code' => '004000200005000000502', 'code_level' => '3', 'district_type' => '0'),
        509 => array('id' => '509', 'name' => '临夏', 'poi_code' => '004000200005000000509', 'code_level' => '3', 'district_type' => '0'),
        512 => array('id' => '512', 'name' => '陇南', 'poi_code' => '004000200005000000512', 'code_level' => '3', 'district_type' => '0'),

        510 => array('id' => '510', 'name' => '平凉', 'poi_code' => '004000200005000000510', 'code_level' => '3', 'district_type' => '0'),
        514 => array('id' => '514', 'name' => '庆阳', 'poi_code' => '004000200005000000514', 'code_level' => '3', 'district_type' => '0'),
        511 => array('id' => '511', 'name' => '天水', 'poi_code' => '004000200005000000511', 'code_level' => '3', 'district_type' => '0'),
        784344 => array('id' => '784344', 'name' => '秦城区', 'poi_code' => '0040002000050000005110784344', 'code_level' => '4', 'district_type' => '0'),

        513 => array('id' => '513', 'name' => '武威', 'poi_code' => '004000200005000000513', 'code_level' => '3', 'district_type' => '0'),

        515 => array('id' => '515', 'name' => '张掖', 'poi_code' => '004000200005000000515', 'code_level' => '3', 'district_type' => '0'),
        600 => array('id' => '600', 'name' => '广东', 'poi_code' => '00400020000600', 'code_level' => '2', 'district_type' => '5'),
        604 => array('id' => '604', 'name' => '潮州', 'poi_code' => '004000200006000000604', 'code_level' => '3', 'district_type' => '0'),
        606 => array('id' => '606', 'name' => '东莞', 'poi_code' => '004000200006000000606', 'code_level' => '3', 'district_type' => '0'),

        607 => array('id' => '607', 'name' => '佛山', 'poi_code' => '004000200006000000607', 'code_level' => '3', 'district_type' => '0'),
        602 => array('id' => '602', 'name' => '广州', 'poi_code' => '004000200006000000602', 'code_level' => '3', 'district_type' => '0'),
        784298 => array('id' => '784298', 'name' => '东山区', 'poi_code' => '0040002000060000006020784298', 'code_level' => '4', 'district_type' => '0'),
        608 => array('id' => '608', 'name' => '河源', 'poi_code' => '004000200006000000608', 'code_level' => '3', 'district_type' => '0'),
        609 => array('id' => '609', 'name' => '惠州', 'poi_code' => '004000200006000000609', 'code_level' => '3', 'district_type' => '0'),
        610 => array('id' => '610', 'name' => '江门', 'poi_code' => '004000200006000000610', 'code_level' => '3', 'district_type' => '0'),
        611 => array('id' => '611', 'name' => '揭阳', 'poi_code' => '004000200006000000611', 'code_level' => '3', 'district_type' => '0'),
        613 => array('id' => '613', 'name' => '茂名', 'poi_code' => '004000200006000000613', 'code_level' => '3', 'district_type' => '0'),
        614 => array('id' => '614', 'name' => '梅州', 'poi_code' => '004000200006000000614', 'code_level' => '3', 'district_type' => '0'),
        615 => array('id' => '615', 'name' => '清远', 'poi_code' => '004000200006000000615', 'code_level' => '3', 'district_type' => '0'),
        616 => array('id' => '616', 'name' => '汕头', 'poi_code' => '004000200006000000616', 'code_level' => '3', 'district_type' => '0'),
        617 => array('id' => '617', 'name' => '汕尾', 'poi_code' => '004000200006000000617', 'code_level' => '3', 'district_type' => '0'),

        618 => array('id' => '618', 'name' => '韶关', 'poi_code' => '004000200006000000618', 'code_level' => '3', 'district_type' => '0'),
        619 => array('id' => '619', 'name' => '深圳', 'poi_code' => '004000200006000000619', 'code_level' => '3', 'district_type' => '0'),
        621 => array('id' => '621', 'name' => '阳江', 'poi_code' => '004000200006000000621', 'code_level' => '3', 'district_type' => '0'),

        623 => array('id' => '623', 'name' => '云浮', 'poi_code' => '004000200006000000623', 'code_level' => '3', 'district_type' => '0'),
        625 => array('id' => '625', 'name' => '湛江', 'poi_code' => '004000200006000000625', 'code_level' => '3', 'district_type' => '0'),

        626 => array('id' => '626', 'name' => '肇庆', 'poi_code' => '004000200006000000626', 'code_level' => '3', 'district_type' => '0'),
        627 => array('id' => '627', 'name' => '中山', 'poi_code' => '004000200006000000627', 'code_level' => '3', 'district_type' => '0'),

        628 => array('id' => '628', 'name' => '珠海', 'poi_code' => '004000200006000000628', 'code_level' => '3', 'district_type' => '0'),
        700 => array('id' => '700', 'name' => '广西', 'poi_code' => '00400020000700', 'code_level' => '2', 'district_type' => '5'),
        703 => array('id' => '703', 'name' => '百色', 'poi_code' => '004000200007000000703', 'code_level' => '3', 'district_type' => '0'),

        704 => array('id' => '704', 'name' => '北海', 'poi_code' => '004000200007000000704', 'code_level' => '3', 'district_type' => '0'),

        715 => array('id' => '715', 'name' => '崇左', 'poi_code' => '004000200007000000715', 'code_level' => '3', 'district_type' => '0'),
        706 => array('id' => '706', 'name' => '防城港', 'poi_code' => '004000200007000000706', 'code_level' => '3', 'district_type' => '0'),

        713 => array('id' => '713', 'name' => '贵港', 'poi_code' => '004000200007000000713', 'code_level' => '3', 'district_type' => '0'),
        705 => array('id' => '705', 'name' => '桂林', 'poi_code' => '004000200007000000705', 'code_level' => '3', 'district_type' => '0'),
        707 => array('id' => '707', 'name' => '河池', 'poi_code' => '004000200007000000707', 'code_level' => '3', 'district_type' => '0'),
        708 => array('id' => '708', 'name' => '贺州', 'poi_code' => '004000200007000000708', 'code_level' => '3', 'district_type' => '0'),

        714 => array('id' => '714', 'name' => '来宾', 'poi_code' => '004000200007000000714', 'code_level' => '3', 'district_type' => '0'),
        709 => array('id' => '709', 'name' => '柳州', 'poi_code' => '004000200007000000709', 'code_level' => '3', 'district_type' => '0'),
        702 => array('id' => '702', 'name' => '南宁', 'poi_code' => '004000200007000000702', 'code_level' => '3', 'district_type' => '0'),

        710 => array('id' => '710', 'name' => '钦州', 'poi_code' => '004000200007000000710', 'code_level' => '3', 'district_type' => '0'),

        711 => array('id' => '711', 'name' => '梧州', 'poi_code' => '004000200007000000711', 'code_level' => '3', 'district_type' => '0'),
        712 => array('id' => '712', 'name' => '玉林', 'poi_code' => '004000200007000000712', 'code_level' => '3', 'district_type' => '0'),
        800 => array('id' => '800', 'name' => '贵州', 'poi_code' => '00400020000800', 'code_level' => '2', 'district_type' => '5'),
        803 => array('id' => '803', 'name' => '安顺', 'poi_code' => '004000200008000000803', 'code_level' => '3', 'district_type' => '0'),
        804 => array('id' => '804', 'name' => '毕节', 'poi_code' => '004000200008000000804', 'code_level' => '3', 'district_type' => '0'),
        802 => array('id' => '802', 'name' => '贵阳', 'poi_code' => '004000200008000000802', 'code_level' => '3', 'district_type' => '0'),
        807 => array('id' => '807', 'name' => '六盘水', 'poi_code' => '004000200008000000807', 'code_level' => '3', 'district_type' => '0'),

        806 => array('id' => '806', 'name' => '黔东南', 'poi_code' => '004000200008000000806', 'code_level' => '3', 'district_type' => '0'),
        805 => array('id' => '805', 'name' => '黔南', 'poi_code' => '004000200008000000805', 'code_level' => '3', 'district_type' => '0'),

        809 => array('id' => '809', 'name' => '黔西南', 'poi_code' => '004000200008000000809', 'code_level' => '3', 'district_type' => '0'),
        808 => array('id' => '808', 'name' => '铜仁', 'poi_code' => '004000200008000000808', 'code_level' => '3', 'district_type' => '0'),
        811 => array('id' => '811', 'name' => '遵义', 'poi_code' => '004000200008000000811', 'code_level' => '3', 'district_type' => '0'),
        900 => array('id' => '900', 'name' => '海南', 'poi_code' => '00400020000900', 'code_level' => '2', 'district_type' => '5'),
        917 => array('id' => '917', 'name' => '白沙', 'poi_code' => '004000200009000000917', 'code_level' => '3', 'district_type' => '0'),
        784366 => array('id' => '784366', 'name' => '白沙黎族自治县', 'poi_code' => '004000200009000784366', 'code_level' => '3', 'district_type' => '0'),
        919 => array('id' => '919', 'name' => '保亭', 'poi_code' => '004000200009000000919', 'code_level' => '3', 'district_type' => '0'),
        784386 => array('id' => '784386', 'name' => '保亭黎族苗族自治县', 'poi_code' => '004000200009000784386', 'code_level' => '3', 'district_type' => '0'),
        916 => array('id' => '916', 'name' => '昌江', 'poi_code' => '004000200009000000916', 'code_level' => '3', 'district_type' => '0'),
        784372 => array('id' => '784372', 'name' => '昌江黎族自治县', 'poi_code' => '004000200009000784372', 'code_level' => '3', 'district_type' => '0'),
        913 => array('id' => '913', 'name' => '澄迈', 'poi_code' => '004000200009000000913', 'code_level' => '3', 'district_type' => '0'),
        903 => array('id' => '903', 'name' => '儋州', 'poi_code' => '004000200009000000903', 'code_level' => '3', 'district_type' => '0'),
        914 => array('id' => '914', 'name' => '定安', 'poi_code' => '004000200009000000914', 'code_level' => '3', 'district_type' => '0'),
        911 => array('id' => '911', 'name' => '东方', 'poi_code' => '004000200009000000911', 'code_level' => '3', 'district_type' => '0'),
        902 => array('id' => '902', 'name' => '海口', 'poi_code' => '004000200009000000902', 'code_level' => '3', 'district_type' => '0'),

        907 => array('id' => '907', 'name' => '乐东', 'poi_code' => '004000200009000000907', 'code_level' => '3', 'district_type' => '0'),
        784376 => array('id' => '784376', 'name' => '乐东黎族自治县', 'poi_code' => '004000200009000784376', 'code_level' => '3', 'district_type' => '0'),
        912 => array('id' => '912', 'name' => '临高', 'poi_code' => '004000200009000000912', 'code_level' => '3', 'district_type' => '0'),
        904 => array('id' => '904', 'name' => '陵水', 'poi_code' => '004000200009000000904', 'code_level' => '3', 'district_type' => '0'),
        784380 => array('id' => '784380', 'name' => '陵水黎族自治县', 'poi_code' => '004000200009000784380', 'code_level' => '3', 'district_type' => '0'),
        905 => array('id' => '905', 'name' => '琼海', 'poi_code' => '004000200009000000905', 'code_level' => '3', 'district_type' => '0'),

        918 => array('id' => '918', 'name' => '琼中', 'poi_code' => '004000200009000000918', 'code_level' => '3', 'district_type' => '0'),
        784390 => array('id' => '784390', 'name' => '琼中黎族苗族自治县', 'poi_code' => '004000200009000784390', 'code_level' => '3', 'district_type' => '0'),
        920 => array('id' => '920', 'name' => '三沙市', 'poi_code' => '004000200009000000920', 'code_level' => '3', 'district_type' => '0'),
        906 => array('id' => '906', 'name' => '三亚', 'poi_code' => '004000200009000000906', 'code_level' => '3', 'district_type' => '0'),


        915 => array('id' => '915', 'name' => '屯昌', 'poi_code' => '004000200009000000915', 'code_level' => '3', 'district_type' => '0'),
        908 => array('id' => '908', 'name' => '万宁', 'poi_code' => '004000200009000000908', 'code_level' => '3', 'district_type' => '0'),
        909 => array('id' => '909', 'name' => '文昌', 'poi_code' => '004000200009000000909', 'code_level' => '3', 'district_type' => '0'),
        910 => array('id' => '910', 'name' => '五指山', 'poi_code' => '004000200009000000910', 'code_level' => '3', 'district_type' => '0'),
        784396 => array('id' => '784396', 'name' => '西南中沙群岛办事处', 'poi_code' => '004000200009000784396', 'code_level' => '3', 'district_type' => '0'),
        1000 => array('id' => '1000', 'name' => '河北', 'poi_code' => '00400020001000', 'code_level' => '2', 'district_type' => '5'),
        1003 => array('id' => '1003', 'name' => '保定', 'poi_code' => '004000200010000001003', 'code_level' => '3', 'district_type' => '0'),
        1005 => array('id' => '1005', 'name' => '沧州', 'poi_code' => '004000200010000001005', 'code_level' => '3', 'district_type' => '0'),
        1006 => array('id' => '1006', 'name' => '承德', 'poi_code' => '004000200010000001006', 'code_level' => '3', 'district_type' => '0'),
        1008 => array('id' => '1008', 'name' => '邯郸', 'poi_code' => '004000200010000001008', 'code_level' => '3', 'district_type' => '0'),
        1793072 => array('id' => '1793072', 'name' => '衡水', 'poi_code' => '004000200010001793072', 'code_level' => '3', 'district_type' => '0'),
        1009 => array('id' => '1009', 'name' => '衡水', 'poi_code' => '004000200010000001009', 'code_level' => '3', 'district_type' => '0'),
        1010 => array('id' => '1010', 'name' => '廊坊', 'poi_code' => '004000200010000001010', 'code_level' => '3', 'district_type' => '0'),
        1012 => array('id' => '1012', 'name' => '秦皇岛', 'poi_code' => '004000200010000001012', 'code_level' => '3', 'district_type' => '0'),
        1002 => array('id' => '1002', 'name' => '石家庄', 'poi_code' => '004000200010000001002', 'code_level' => '3', 'district_type' => '0'),
        1013 => array('id' => '1013', 'name' => '唐山', 'poi_code' => '004000200010000001013', 'code_level' => '3', 'district_type' => '0'),

        784402 => array('id' => '784402', 'name' => '新区', 'poi_code' => '0040002000100000010130784402', 'code_level' => '4', 'district_type' => '0'),
        1015 => array('id' => '1015', 'name' => '邢台', 'poi_code' => '004000200010000001015', 'code_level' => '3', 'district_type' => '0'),
        1016 => array('id' => '1016', 'name' => '张家口', 'poi_code' => '004000200010000001016', 'code_level' => '3', 'district_type' => '0'),
        1100 => array('id' => '1100', 'name' => '黑龙江', 'poi_code' => '00400020001100', 'code_level' => '2', 'district_type' => '5'),
        1104 => array('id' => '1104', 'name' => '大庆', 'poi_code' => '004000200011000001104', 'code_level' => '3', 'district_type' => '0'),

        1105 => array('id' => '1105', 'name' => '大兴安岭', 'poi_code' => '004000200011000001105', 'code_level' => '3', 'district_type' => '0'),
        1102 => array('id' => '1102', 'name' => '哈尔滨', 'poi_code' => '004000200011000001102', 'code_level' => '3', 'district_type' => '0'),

        1106 => array('id' => '1106', 'name' => '鹤岗', 'poi_code' => '004000200011000001106', 'code_level' => '3', 'district_type' => '0'),
        1107 => array('id' => '1107', 'name' => '黑河', 'poi_code' => '004000200011000001107', 'code_level' => '3', 'district_type' => '0'),
        1108 => array('id' => '1108', 'name' => '佳木斯', 'poi_code' => '004000200011000001108', 'code_level' => '3', 'district_type' => '0'),
        1109 => array('id' => '1109', 'name' => '鸡西', 'poi_code' => '004000200011000001109', 'code_level' => '3', 'district_type' => '0'),

        1110 => array('id' => '1110', 'name' => '牡丹江', 'poi_code' => '004000200011000001110', 'code_level' => '3', 'district_type' => '0'),
        1111 => array('id' => '1111', 'name' => '齐齐哈尔', 'poi_code' => '004000200011000001111', 'code_level' => '3', 'district_type' => '0'),
        1112 => array('id' => '1112', 'name' => '七台河', 'poi_code' => '004000200011000001112', 'code_level' => '3', 'district_type' => '0'),

        1113 => array('id' => '1113', 'name' => '双鸭山', 'poi_code' => '004000200011000001113', 'code_level' => '3', 'district_type' => '0'),
        1114 => array('id' => '1114', 'name' => '绥化', 'poi_code' => '004000200011000001114', 'code_level' => '3', 'district_type' => '0'),
        1115 => array('id' => '1115', 'name' => '伊春', 'poi_code' => '004000200011000001115', 'code_level' => '3', 'district_type' => '0'),
        1200 => array('id' => '1200', 'name' => '河南', 'poi_code' => '00400020001200', 'code_level' => '2', 'district_type' => '5'),
        1203 => array('id' => '1203', 'name' => '安阳', 'poi_code' => '004000200012000001203', 'code_level' => '3', 'district_type' => '0'),

        1209 => array('id' => '1209', 'name' => '漯河', 'poi_code' => '004000200012000001209', 'code_level' => '3', 'district_type' => '0'),
        1204 => array('id' => '1204', 'name' => '鹤壁', 'poi_code' => '004000200012000001204', 'code_level' => '3', 'district_type' => '0'),
        1206 => array('id' => '1206', 'name' => '焦作', 'poi_code' => '004000200012000001206', 'code_level' => '3', 'district_type' => '0'),
        1207 => array('id' => '1207', 'name' => '济源', 'poi_code' => '004000200012000001207', 'code_level' => '3', 'district_type' => '0'),
        1208 => array('id' => '1208', 'name' => '开封', 'poi_code' => '004000200012000001208', 'code_level' => '3', 'district_type' => '0'),
        1210 => array('id' => '1210', 'name' => '洛阳', 'poi_code' => '004000200012000001210', 'code_level' => '3', 'district_type' => '0'),

        1211 => array('id' => '1211', 'name' => '南阳', 'poi_code' => '004000200012000001211', 'code_level' => '3', 'district_type' => '0'),
        1212 => array('id' => '1212', 'name' => '平顶山', 'poi_code' => '004000200012000001212', 'code_level' => '3', 'district_type' => '0'),
        1214 => array('id' => '1214', 'name' => '三门峡', 'poi_code' => '004000200012000001214', 'code_level' => '3', 'district_type' => '0'),
        1215 => array('id' => '1215', 'name' => '商丘', 'poi_code' => '004000200012000001215', 'code_level' => '3', 'district_type' => '0'),

        1216 => array('id' => '1216', 'name' => '新乡', 'poi_code' => '004000200012000001216', 'code_level' => '3', 'district_type' => '0'),
        784308 => array('id' => '784308', 'name' => '新华区', 'poi_code' => '0040002000120000012160784308', 'code_level' => '4', 'district_type' => '0'),

        1217 => array('id' => '1217', 'name' => '信阳', 'poi_code' => '004000200012000001217', 'code_level' => '3', 'district_type' => '0'),
        1218 => array('id' => '1218', 'name' => '许昌', 'poi_code' => '004000200012000001218', 'code_level' => '3', 'district_type' => '0'),
        1213 => array('id' => '1213', 'name' => '濮阳', 'poi_code' => '004000200012000001213', 'code_level' => '3', 'district_type' => '0'),
        1202 => array('id' => '1202', 'name' => '郑州', 'poi_code' => '004000200012000001202', 'code_level' => '3', 'district_type' => '0'),

        1219 => array('id' => '1219', 'name' => '周口', 'poi_code' => '004000200012000001219', 'code_level' => '3', 'district_type' => '0'),
        1220 => array('id' => '1220', 'name' => '驻马店', 'poi_code' => '004000200012000001220', 'code_level' => '3', 'district_type' => '0'),
        1400 => array('id' => '1400', 'name' => '湖北', 'poi_code' => '00400020001400', 'code_level' => '2', 'district_type' => '5'),
        1403 => array('id' => '1403', 'name' => '恩施', 'poi_code' => '004000200014000001403', 'code_level' => '3', 'district_type' => '0'),
        1404 => array('id' => '1404', 'name' => '鄂州', 'poi_code' => '004000200014000001404', 'code_level' => '3', 'district_type' => '0'),
        1405 => array('id' => '1405', 'name' => '黄冈', 'poi_code' => '004000200014000001405', 'code_level' => '3', 'district_type' => '0'),
        1406 => array('id' => '1406', 'name' => '黄石', 'poi_code' => '004000200014000001406', 'code_level' => '3', 'district_type' => '0'),
        1419 => array('id' => '1419', 'name' => '荆门', 'poi_code' => '004000200014000001419', 'code_level' => '3', 'district_type' => '0'),
        1408 => array('id' => '1408', 'name' => '荆州', 'poi_code' => '004000200014000001408', 'code_level' => '3', 'district_type' => '0'),
        1409 => array('id' => '1409', 'name' => '潜江', 'poi_code' => '004000200014000001409', 'code_level' => '3', 'district_type' => '0'),
        1412 => array('id' => '1412', 'name' => '神农架', 'poi_code' => '004000200014000001412', 'code_level' => '3', 'district_type' => '0'),
        784412 => array('id' => '784412', 'name' => '神农架林区', 'poi_code' => '004000200014000784412', 'code_level' => '3', 'district_type' => '0'),
        1410 => array('id' => '1410', 'name' => '十堰', 'poi_code' => '004000200014000001410', 'code_level' => '3', 'district_type' => '0'),
        1411 => array('id' => '1411', 'name' => '随州', 'poi_code' => '004000200014000001411', 'code_level' => '3', 'district_type' => '0'),
        1407 => array('id' => '1407', 'name' => '天门', 'poi_code' => '004000200014000001407', 'code_level' => '3', 'district_type' => '0'),
        1402 => array('id' => '1402', 'name' => '武汉', 'poi_code' => '004000200014000001402', 'code_level' => '3', 'district_type' => '0'),
        1416 => array('id' => '1416', 'name' => '襄阳', 'poi_code' => '004000200014000001416', 'code_level' => '3', 'district_type' => '0'),

        1414 => array('id' => '1414', 'name' => '咸宁', 'poi_code' => '004000200014000001414', 'code_level' => '3', 'district_type' => '0'),
        1413 => array('id' => '1413', 'name' => '仙桃', 'poi_code' => '004000200014000001413', 'code_level' => '3', 'district_type' => '0'),
        1417 => array('id' => '1417', 'name' => '孝感', 'poi_code' => '004000200014000001417', 'code_level' => '3', 'district_type' => '0'),
        1418 => array('id' => '1418', 'name' => '宜昌', 'poi_code' => '004000200014000001418', 'code_level' => '3', 'district_type' => '0'),
        1500 => array('id' => '1500', 'name' => '湖南', 'poi_code' => '00400020001500', 'code_level' => '2', 'district_type' => '5'),
        1503 => array('id' => '1503', 'name' => '常德', 'poi_code' => '004000200015000001503', 'code_level' => '3', 'district_type' => '0'),

        1502 => array('id' => '1502', 'name' => '长沙', 'poi_code' => '004000200015000001502', 'code_level' => '3', 'district_type' => '0'),

        1504 => array('id' => '1504', 'name' => '郴州', 'poi_code' => '004000200015000001504', 'code_level' => '3', 'district_type' => '0'),
        1505 => array('id' => '1505', 'name' => '衡阳', 'poi_code' => '004000200015000001505', 'code_level' => '3', 'district_type' => '0'),

        1506 => array('id' => '1506', 'name' => '怀化', 'poi_code' => '004000200015000001506', 'code_level' => '3', 'district_type' => '0'),

        1508 => array('id' => '1508', 'name' => '娄底', 'poi_code' => '004000200015000001508', 'code_level' => '3', 'district_type' => '0'),
        1509 => array('id' => '1509', 'name' => '邵阳', 'poi_code' => '004000200015000001509', 'code_level' => '3', 'district_type' => '0'),

        1510 => array('id' => '1510', 'name' => '湘潭', 'poi_code' => '004000200015000001510', 'code_level' => '3', 'district_type' => '0'),
        1507 => array('id' => '1507', 'name' => '湘西', 'poi_code' => '004000200015000001507', 'code_level' => '3', 'district_type' => '0'),
        1511 => array('id' => '1511', 'name' => '益阳', 'poi_code' => '004000200015000001511', 'code_level' => '3', 'district_type' => '0'),
        1513 => array('id' => '1513', 'name' => '永州', 'poi_code' => '004000200015000001513', 'code_level' => '3', 'district_type' => '0'),
        1512 => array('id' => '1512', 'name' => '岳阳', 'poi_code' => '004000200015000001512', 'code_level' => '3', 'district_type' => '0'),

        1514 => array('id' => '1514', 'name' => '张家界', 'poi_code' => '004000200015000001514', 'code_level' => '3', 'district_type' => '0'),


        1515 => array('id' => '1515', 'name' => '株洲', 'poi_code' => '004000200015000001515', 'code_level' => '3', 'district_type' => '0'),

        1600 => array('id' => '1600', 'name' => '江苏', 'poi_code' => '00400020001600', 'code_level' => '2', 'district_type' => '5'),
        1604 => array('id' => '1604', 'name' => '常州', 'poi_code' => '004000200016000001604', 'code_level' => '3', 'district_type' => '0'),
        1606 => array('id' => '1606', 'name' => '淮安', 'poi_code' => '004000200016000001606', 'code_level' => '3', 'district_type' => '0'),
        1610 => array('id' => '1610', 'name' => '连云港', 'poi_code' => '004000200016000001610', 'code_level' => '3', 'district_type' => '0'),
        1602 => array('id' => '1602', 'name' => '南京', 'poi_code' => '004000200016000001602', 'code_level' => '3', 'district_type' => '0'),
        1611 => array('id' => '1611', 'name' => '南通', 'poi_code' => '004000200016000001611', 'code_level' => '3', 'district_type' => '0'),
        1614 => array('id' => '1614', 'name' => '宿迁', 'poi_code' => '004000200016000001614', 'code_level'=>'3','district_type'=>'0'),
        1615 => array('id'=>'1615','name'=>'苏州','poi_code'=>'004000200016000001615','code_level'=>'3','district_type'=>'0'),


        1617 => array('id' => '1617', 'name' => '泰州', 'poi_code' => '004000200016000001617', 'code_level' => '3', 'district_type' => '0'),
        1619 => array('id' => '1619', 'name' => '无锡', 'poi_code' => '004000200016000001619', 'code_level' => '3', 'district_type' => '0'),
        1620 => array('id' => '1620', 'name' => '徐州', 'poi_code' => '004000200016000001620', 'code_level' => '3', 'district_type' => '0'),
        1621 => array('id' => '1621', 'name' => '盐城', 'poi_code' => '004000200016000001621', 'code_level' => '3', 'district_type' => '0'),

        1622 => array('id' => '1622', 'name' => '扬州', 'poi_code' => '004000200016000001622', 'code_level' => '3', 'district_type' => '0'),
        1626 => array('id' => '1626', 'name' => '镇江', 'poi_code' => '004000200016000001626', 'code_level' => '3', 'district_type' => '0'),
        1700 => array('id' => '1700', 'name' => '江西', 'poi_code' => '00400020001700', 'code_level' => '2', 'district_type' => '5'),
        1703 => array('id' => '1703', 'name' => '抚州', 'poi_code' => '004000200017000001703', 'code_level' => '3', 'district_type' => '0'),
        1704 => array('id' => '1704', 'name' => '赣州', 'poi_code' => '004000200017000001704', 'code_level' => '3', 'district_type' => '0'),

        1705 => array('id' => '1705', 'name' => '吉安', 'poi_code' => '004000200017000001705', 'code_level' => '3', 'district_type' => '0'),
        1706 => array('id' => '1706', 'name' => '景德镇', 'poi_code' => '004000200017000001706', 'code_level' => '3', 'district_type' => '0'),

        1708 => array('id' => '1708', 'name' => '九江', 'poi_code' => '004000200017000001708', 'code_level' => '3', 'district_type' => '0'),

        1702 => array('id' => '1702', 'name' => '南昌', 'poi_code' => '004000200017000001702', 'code_level' => '3', 'district_type' => '0'),

        1710 => array('id' => '1710', 'name' => '萍乡', 'poi_code' => '004000200017000001710', 'code_level' => '3', 'district_type' => '0'),
        1711 => array('id' => '1711', 'name' => '上饶', 'poi_code' => '004000200017000001711', 'code_level' => '3', 'district_type' => '0'),

        1712 => array('id' => '1712', 'name' => '新余', 'poi_code' => '004000200017000001712', 'code_level' => '3', 'district_type' => '0'),
        1713 => array('id' => '1713', 'name' => '宜春', 'poi_code' => '004000200017000001713', 'code_level' => '3', 'district_type' => '0'),
        1714 => array('id' => '1714', 'name' => '鹰潭', 'poi_code' => '004000200017000001714', 'code_level' => '3', 'district_type' => '0'),
        1800 => array('id' => '1800', 'name' => '吉林', 'poi_code' => '00400020001800', 'code_level' => '2', 'district_type' => '5'),
        1803 => array('id' => '1803', 'name' => '白城', 'poi_code' => '004000200018000001803', 'code_level' => '3', 'district_type' => '0'),
        1804 => array('id' => '1804', 'name' => '白山', 'poi_code' => '004000200018000001804', 'code_level' => '3', 'district_type' => '0'),
        1802 => array('id' => '1802', 'name' => '长春', 'poi_code' => '004000200018000001802', 'code_level' => '3', 'district_type' => '0'),
        1808 => array('id' => '1808', 'name' => '吉林', 'poi_code' => '004000200018000001808', 'code_level' => '3', 'district_type' => '0'),

        1806 => array('id' => '1806', 'name' => '辽源', 'poi_code' => '004000200018000001806', 'code_level' => '3', 'district_type' => '0'),

        1809 => array('id' => '1809', 'name' => '四平', 'poi_code' => '004000200018000001809', 'code_level' => '3', 'district_type' => '0'),
        1810 => array('id' => '1810', 'name' => '松原', 'poi_code' => '004000200018000001810', 'code_level' => '3', 'district_type' => '0'),
        1811 => array('id' => '1811', 'name' => '通化', 'poi_code' => '004000200018000001811', 'code_level' => '3', 'district_type' => '0'),
        1812 => array('id' => '1812', 'name' => '延边', 'poi_code' => '004000200018000001812', 'code_level' => '3', 'district_type' => '0'),
        1900 => array('id' => '1900', 'name' => '辽宁', 'poi_code' => '00400020001900', 'code_level' => '2', 'district_type' => '5'),
        1903 => array('id' => '1903', 'name' => '鞍山', 'poi_code' => '004000200019000001903', 'code_level' => '3', 'district_type' => '0'),
        1904 => array('id' => '1904', 'name' => '本溪', 'poi_code' => '004000200019000001904', 'code_level' => '3', 'district_type' => '0'),
        1905 => array('id' => '1905', 'name' => '朝阳', 'poi_code' => '004000200019000001905', 'code_level' => '3', 'district_type' => '0'),
        1906 => array('id' => '1906', 'name' => '大连', 'poi_code' => '004000200019000001906', 'code_level' => '3', 'district_type' => '0'),
        1907 => array('id' => '1907', 'name' => '丹东', 'poi_code' => '004000200019000001907', 'code_level' => '3', 'district_type' => '0'),
        1908 => array('id' => '1908', 'name' => '抚顺', 'poi_code' => '004000200019000001908', 'code_level' => '3', 'district_type' => '0'),
        1909 => array('id' => '1909', 'name' => '阜新', 'poi_code' => '004000200019000001909', 'code_level' => '3', 'district_type' => '0'),
        1910 => array('id' => '1910', 'name' => '葫芦岛', 'poi_code' => '004000200019000001910', 'code_level' => '3', 'district_type' => '0'),
        1911 => array('id' => '1911', 'name' => '锦州', 'poi_code' => '004000200019000001911', 'code_level' => '3', 'district_type' => '0'),
        1912 => array('id' => '1912', 'name' => '辽阳', 'poi_code' => '004000200019000001912', 'code_level' => '3', 'district_type' => '0'),
        1913 => array('id' => '1913', 'name' => '盘锦', 'poi_code' => '004000200019000001913', 'code_level' => '3', 'district_type' => '0'),

        1902 => array('id' => '1902', 'name' => '沈阳', 'poi_code' => '004000200019000001902', 'code_level' => '3', 'district_type' => '0'),
        1914 => array('id' => '1914', 'name' => '铁岭', 'poi_code' => '004000200019000001914', 'code_level' => '3', 'district_type' => '0'),
        1915 => array('id' => '1915', 'name' => '营口', 'poi_code' => '004000200019000001915', 'code_level' => '3', 'district_type' => '0'),
        2100 => array('id' => '2100', 'name' => '内蒙古', 'poi_code' => '00400020002100', 'code_level' => '2', 'district_type' => '5'),
        2103 => array('id' => '2103', 'name' => '阿拉善', 'poi_code' => '004000200021000002103', 'code_level' => '3', 'district_type' => '0'),
        2104 => array('id' => '2104', 'name' => '包头', 'poi_code' => '004000200021000002104', 'code_level' => '3', 'district_type' => '0'),

        2109 => array('id' => '2109', 'name' => '巴彦淖尔', 'poi_code' => '004000200021000002109', 'code_level' => '3', 'district_type' => '0'),
        2105 => array('id' => '2105', 'name' => '赤峰', 'poi_code' => '004000200021000002105', 'code_level' => '3', 'district_type' => '0'),

        2106 => array('id' => '2106', 'name' => '鄂尔多斯', 'poi_code' => '004000200021000002106', 'code_level' => '3', 'district_type' => '0'),
        2102 => array('id' => '2102', 'name' => '呼和浩特', 'poi_code' => '004000200021000002102', 'code_level' => '3', 'district_type' => '0'),

        2107 => array('id' => '2107', 'name' => '呼伦贝尔', 'poi_code' => '004000200021000002107', 'code_level' => '3', 'district_type' => '0'),
        2110 => array('id' => '2110', 'name' => '通辽', 'poi_code' => '004000200021000002110', 'code_level' => '3', 'district_type' => '0'),
        2111 => array('id' => '2111', 'name' => '乌海', 'poi_code' => '004000200021000002111', 'code_level' => '3', 'district_type' => '0'),
        2108 => array('id' => '2108', 'name' => '乌兰察布', 'poi_code' => '004000200021000002108', 'code_level' => '3', 'district_type' => '0'),
        2113 => array('id' => '2113', 'name' => '锡林郭勒', 'poi_code' => '004000200021000002113', 'code_level' => '3', 'district_type' => '0'),

        2112 => array('id' => '2112', 'name' => '兴安', 'poi_code' => '004000200021000002112', 'code_level' => '3', 'district_type' => '0'),
        2200 => array('id' => '2200', 'name' => '宁夏', 'poi_code' => '00400020002200', 'code_level' => '2', 'district_type' => '5'),
        2203 => array('id' => '2203', 'name' => '固原', 'poi_code' => '004000200022000002203', 'code_level' => '3', 'district_type' => '0'),
        2204 => array('id' => '2204', 'name' => '石嘴山', 'poi_code' => '004000200022000002204', 'code_level' => '3', 'district_type' => '0'),
        2205 => array('id' => '2205', 'name' => '吴忠', 'poi_code' => '004000200022000002205', 'code_level' => '3', 'district_type' => '0'),
        2202 => array('id' => '2202', 'name' => '银川', 'poi_code' => '004000200022000002202', 'code_level' => '3', 'district_type' => '0'),
        2206 => array('id' => '2206', 'name' => '中卫', 'poi_code' => '004000200022000002206', 'code_level' => '3', 'district_type' => '0'),
        2300 => array('id' => '2300', 'name' => '青海', 'poi_code' => '00400020002300', 'code_level' => '2', 'district_type' => '5'),
        2308 => array('id' => '2308', 'name' => '果洛', 'poi_code' => '004000200023000002308', 'code_level' => '3', 'district_type' => '0'),
        2307 => array('id' => '2307', 'name' => '海北', 'poi_code' => '004000200023000002307', 'code_level' => '3', 'district_type' => '0'),

        2306 => array('id' => '2306', 'name' => '海东', 'poi_code' => '004000200023000002306', 'code_level' => '3', 'district_type' => '0'),
        2305 => array('id' => '2305', 'name' => '海南州', 'poi_code' => '004000200023000002305', 'code_level' => '3', 'district_type' => '0'),
        2303 => array('id' => '2303', 'name' => '海西', 'poi_code' => '004000200023000002303', 'code_level' => '3', 'district_type' => '0'),
        2309 => array('id' => '2309', 'name' => '黄南', 'poi_code' => '004000200023000002309', 'code_level' => '3', 'district_type' => '0'),

        2302 => array('id' => '2302', 'name' => '西宁', 'poi_code' => '004000200023000002302', 'code_level' => '3', 'district_type' => '0'),
        2310 => array('id' => '2310', 'name' => '玉树', 'poi_code' => '004000200023000002310', 'code_level' => '3', 'district_type' => '0'),
        2700 => array('id' => '2700', 'name' => '陕西', 'poi_code' => '00400020002700', 'code_level' => '2', 'district_type' => '5'),
        2703 => array('id' => '2703', 'name' => '安康', 'poi_code' => '004000200027000002703', 'code_level' => '3', 'district_type' => '0'),
        2704 => array('id' => '2704', 'name' => '宝鸡', 'poi_code' => '004000200027000002704', 'code_level' => '3', 'district_type' => '0'),

        2705 => array('id' => '2705', 'name' => '汉中', 'poi_code' => '004000200027000002705', 'code_level' => '3', 'district_type' => '0'),
        2707 => array('id' => '2707', 'name' => '商洛', 'poi_code' => '004000200027000002707', 'code_level' => '3', 'district_type' => '0'),
        2709 => array('id' => '2709', 'name' => '铜川', 'poi_code' => '004000200027000002709', 'code_level' => '3', 'district_type' => '0'),

        2706 => array('id' => '2706', 'name' => '渭南', 'poi_code' => '004000200027000002706', 'code_level' => '3', 'district_type' => '0'),
        2702 => array('id' => '2702', 'name' => '西安', 'poi_code' => '004000200027000002702', 'code_level' => '3', 'district_type' => '0'),
        2710 => array('id' => '2710', 'name' => '咸阳', 'poi_code' => '004000200027000002710', 'code_level' => '3', 'district_type' => '0'),
        2711 => array('id' => '2711', 'name' => '延安', 'poi_code' => '004000200027000002711', 'code_level' => '3', 'district_type' => '0'),
        2712 => array('id' => '2712', 'name' => '榆林', 'poi_code' => '004000200027000002712', 'code_level' => '3', 'district_type' => '0'),

        2400 => array('id' => '2400', 'name' => '山东', 'poi_code' => '00400020002400', 'code_level' => '2', 'district_type' => '5'),
        2403 => array('id' => '2403', 'name' => '滨州', 'poi_code' => '004000200024000002403', 'code_level' => '3', 'district_type' => '0'),
        2405 => array('id' => '2405', 'name' => '德州', 'poi_code' => '004000200024000002405', 'code_level' => '3', 'district_type' => '0'),
        2406 => array('id' => '2406', 'name' => '东营', 'poi_code' => '004000200024000002406', 'code_level' => '3', 'district_type' => '0'),
        2407 => array('id' => '2407', 'name' => '菏泽', 'poi_code' => '004000200024000002407', 'code_level' => '3', 'district_type' => '0'),

        2402 => array('id' => '2402', 'name' => '济南', 'poi_code' => '004000200024000002402', 'code_level' => '3', 'district_type' => '0'),
        786722 => array('id' => '786722', 'name' => '长清', 'poi_code' => '0040002000240000024020786722', 'code_level' => '4', 'district_type' => '0'),
        1794864 => array('id' => '1794864', 'name' => '济南紫缘香草园', 'poi_code' => '00400020002400000240200411311794864', 'code_level' => '5', 'district_type' => '5'),
        2408 => array('id' => '2408', 'name' => '济宁', 'poi_code' => '004000200024000002408', 'code_level' => '3', 'district_type' => '0'),

        2409 => array('id' => '2409', 'name' => '莱芜', 'poi_code' => '004000200024000002409', 'code_level' => '3', 'district_type' => '0'),
        2410 => array('id' => '2410', 'name' => '聊城', 'poi_code' => '004000200024000002410', 'code_level' => '3', 'district_type' => '0'),
        2411 => array('id' => '2411', 'name' => '临沂', 'poi_code' => '004000200024000002411', 'code_level' => '3', 'district_type' => '0'),

        2413 => array('id' => '2413', 'name' => '青岛', 'poi_code' => '004000200024000002413', 'code_level' => '3', 'district_type' => '0'),

        2415 => array('id' => '2415', 'name' => '日照', 'poi_code' => '004000200024000002415', 'code_level' => '3', 'district_type' => '0'),

        2416 => array('id' => '2416', 'name' => '泰安', 'poi_code' => '004000200024000002416', 'code_level' => '3', 'district_type' => '0'),
        2417 => array('id' => '2417', 'name' => '潍坊', 'poi_code' => '004000200024000002417', 'code_level' => '3', 'district_type' => '0'),

        2418 => array('id' => '2418', 'name' => '威海', 'poi_code' => '004000200024000002418', 'code_level' => '3', 'district_type' => '0'),

        2419 => array('id' => '2419', 'name' => '烟台', 'poi_code' => '004000200024000002419', 'code_level' => '3', 'district_type' => '0'),

        2420 => array('id' => '2420', 'name' => '枣庄', 'poi_code' => '004000200024000002420', 'code_level' => '3', 'district_type' => '0'),
        2421 => array('id' => '2421', 'name' => '淄博', 'poi_code' => '004000200024000002421', 'code_level' => '3', 'district_type' => '0'),
        2500 => array('id' => '2500', 'name' => '上海', 'poi_code' => '00400020002500', 'code_level' => '2', 'district_type' => '6'),

        2600 => array('id' => '2600', 'name' => '山西', 'poi_code' => '00400020002600', 'code_level' => '2', 'district_type' => '5'),
        2603 => array('id' => '2603', 'name' => '长治', 'poi_code' => '004000200026000002603', 'code_level' => '3', 'district_type' => '0'),
        2604 => array('id' => '2604', 'name' => '大同', 'poi_code' => '004000200026000002604', 'code_level' => '3', 'district_type' => '0'),
        2606 => array('id' => '2606', 'name' => '晋城', 'poi_code' => '004000200026000002606', 'code_level' => '3', 'district_type' => '0'),
        2612 => array('id' => '2612', 'name' => '晋中', 'poi_code' => '004000200026000002612', 'code_level' => '3', 'district_type' => '0'),
        2608 => array('id' => '2608', 'name' => '临汾', 'poi_code' => '004000200026000002608', 'code_level' => '3', 'district_type' => '0'),
        2607 => array('id' => '2607', 'name' => '吕梁', 'poi_code' => '004000200026000002607', 'code_level' => '3', 'district_type' => '0'),
        2605 => array('id' => '2605', 'name' => '朔州', 'poi_code' => '004000200026000002605', 'code_level' => '3', 'district_type' => '0'),
        2602 => array('id' => '2602', 'name' => '太原', 'poi_code' => '004000200026000002602', 'code_level' => '3', 'district_type' => '0'),
        2610 => array('id' => '2610', 'name' => '忻州', 'poi_code' => '004000200026000002610', 'code_level' => '3', 'district_type' => '0'),
        2611 => array('id' => '2611', 'name' => '阳泉', 'poi_code' => '004000200026000002611', 'code_level' => '3', 'district_type' => '0'),
        2613 => array('id' => '2613', 'name' => '运城', 'poi_code' => '004000200026000002613', 'code_level' => '3', 'district_type' => '0'),
        2800 => array('id' => '2800', 'name' => '四川', 'poi_code' => '00400020002800', 'code_level' => '2', 'district_type' => '5'),
        2815 => array('id' => '2815', 'name' => '阿坝', 'poi_code' => '004000200028000002815', 'code_level' => '3', 'district_type' => '0'),
        2803 => array('id' => '2803', 'name' => '巴中', 'poi_code' => '004000200028000002803', 'code_level' => '3', 'district_type' => '0'),


        2804 => array('id' => '2804', 'name' => '达州', 'poi_code' => '004000200028000002804', 'code_level' => '3', 'district_type' => '0'),
        2805 => array('id' => '2805', 'name' => '德阳', 'poi_code' => '004000200028000002805', 'code_level' => '3', 'district_type' => '0'),
        2812 => array('id' => '2812', 'name' => '甘孜', 'poi_code' => '004000200028000002812', 'code_level' => '3', 'district_type' => '0'),

        2809 => array('id' => '2809', 'name' => '广安', 'poi_code' => '004000200028000002809', 'code_level' => '3', 'district_type' => '0'),
        2810 => array('id' => '2810', 'name' => '广元', 'poi_code' => '004000200028000002810', 'code_level' => '3', 'district_type' => '0'),
        784430 => array('id' => '784430', 'name' => '利州区', 'poi_code' => '0040002000280000028100784430', 'code_level' => '4', 'district_type' => '0'),

        2813 => array('id' => '2813', 'name' => '乐山', 'poi_code' => '004000200028000002813', 'code_level' => '3', 'district_type' => '0'),
        2823 => array('id' => '2823', 'name' => '凉山', 'poi_code' => '004000200028000002823', 'code_level' => '3', 'district_type' => '0'),
        2817 => array('id' => '2817', 'name' => '眉山', 'poi_code' => '004000200028000002817', 'code_level' => '3', 'district_type' => '0'),
        2816 => array('id' => '2816', 'name' => '绵阳', 'poi_code' => '004000200028000002816', 'code_level' => '3', 'district_type' => '0'),

        2818 => array('id' => '2818', 'name' => '南充', 'poi_code' => '004000200028000002818', 'code_level' => '3', 'district_type' => '0'),

        2819 => array('id' => '2819', 'name' => '内江', 'poi_code' => '004000200028000002819', 'code_level' => '3', 'district_type' => '0'),
        2820 => array('id' => '2820', 'name' => '攀枝花', 'poi_code' => '004000200028000002820', 'code_level' => '3', 'district_type' => '0'),
        2821 => array('id' => '2821', 'name' => '遂宁', 'poi_code' => '004000200028000002821', 'code_level' => '3', 'district_type' => '0'),
        2824 => array('id' => '2824', 'name' => '雅安', 'poi_code' => '004000200028000002824', 'code_level' => '3', 'district_type' => '0'),
        2825 => array('id' => '2825', 'name' => '宜宾', 'poi_code' => '004000200028000002825', 'code_level' => '3', 'district_type' => '0'),
        2814 => array('id' => '2814', 'name' => '泸州', 'poi_code' => '004000200028000002814', 'code_level' => '3', 'district_type' => '0'),
        2826 => array('id' => '2826', 'name' => '自贡', 'poi_code' => '004000200028000002826', 'code_level' => '3', 'district_type' => '0'),
        2827 => array('id' => '2827', 'name' => '资阳', 'poi_code' => '004000200028000002827', 'code_level' => '3', 'district_type' => '0'),

        2900 => array('id' => '2900', 'name' => '台湾', 'poi_code' => '00400020002900', 'code_level' => '2', 'district_type' => '5'),
        2906 => array('id' => '2906', 'name' => '高雄市', 'poi_code' => '004000200029000002906', 'code_level' => '3', 'district_type' => '0'),

        2914 => array('id' => '2914', 'name' => '花莲县', 'poi_code' => '004000200029000002914', 'code_level' => '3', 'district_type' => '0'),
        42697 => array('id' => '42697', 'name' => '嘉义市', 'poi_code' => '004000200029000042697', 'code_level' => '3', 'district_type' => '0'),
        2913 => array('id' => '2913', 'name' => '嘉义县', 'poi_code' => '004000200029000002913', 'code_level' => '3', 'district_type' => '0'),

        2903 => array('id' => '2903', 'name' => '基隆市', 'poi_code' => '004000200029000002903', 'code_level' => '3', 'district_type' => '0'),
        1792149 => array('id' => '1792149', 'name' => '垦丁', 'poi_code' => '004000200029001792149', 'code_level' => '3', 'district_type' => '0'),
        2912 => array('id' => '2912', 'name' => '苗栗县', 'poi_code' => '004000200029000002912', 'code_level' => '3', 'district_type' => '0'),
        2908 => array('id' => '2908', 'name' => '南投县', 'poi_code' => '004000200029000002908', 'code_level' => '3', 'district_type' => '0'),


        785143 => array('id' => '785143', 'name' => '南投市', 'poi_code' => '0040002000290000029080785143', 'code_level' => '4', 'district_type' => '0'),


        2920 => array('id' => '2920', 'name' => '澎湖县', 'poi_code' => '004000200029000002920', 'code_level' => '3', 'district_type' => '0'),
        787134 => array('id' => '787134', 'name' => '白沙乡', 'poi_code' => '0040002000290000029200787134', 'code_level' => '4', 'district_type' => '0'),
        787132 => array('id' => '787132', 'name' => '湖西乡', 'poi_code' => '0040002000290000029200787132', 'code_level' => '4', 'district_type' => '0'),
        787136 => array('id' => '787136', 'name' => '马公市', 'poi_code' => '0040002000290000029200787136', 'code_level' => '4', 'district_type' => '0'),
        787138 => array('id' => '787138', 'name' => '七美乡', 'poi_code' => '0040002000290000029200787138', 'code_level' => '4', 'district_type' => '0'),
        787140 => array('id' => '787140', 'name' => '望安乡', 'poi_code' => '0040002000290000029200787140', 'code_level' => '4', 'district_type' => '0'),
        787142 => array('id' => '787142', 'name' => '西屿乡', 'poi_code' => '0040002000290000029200787142', 'code_level' => '4', 'district_type' => '0'),
        2907 => array('id' => '2907', 'name' => '屏东县', 'poi_code' => '004000200029000002907', 'code_level' => '3', 'district_type' => '0'),
        2902 => array('id' => '2902', 'name' => '台北市', 'poi_code' => '004000200029000002902', 'code_level' => '3', 'district_type' => '0'),

        2917 => array('id' => '2917', 'name' => '台东县', 'poi_code' => '004000200029000002917', 'code_level' => '3', 'district_type' => '0'),
        787145 => array('id' => '787145', 'name' => '池上乡', 'poi_code' => '0040002000290000029170787145', 'code_level' => '4', 'district_type' => '0'),
        787149 => array('id' => '787149', 'name' => '台东市', 'poi_code' => '0040002000290000029170787149', 'code_level' => '4', 'district_type' => '0'),
        787147 => array('id' => '787147', 'name' => '太麻里', 'poi_code' => '0040002000290000029170787147', 'code_level' => '4', 'district_type' => '0'),
        2904 => array('id' => '2904', 'name' => '台南市', 'poi_code' => '004000200029000002904', 'code_level' => '3', 'district_type' => '0'),
        2905 => array('id' => '2905', 'name' => '台中市', 'poi_code' => '004000200029000002905', 'code_level' => '3', 'district_type' => '0'),
        2915 => array('id' => '2915', 'name' => '桃园县', 'poi_code' => '004000200029000002915', 'code_level' => '3', 'district_type' => '0'),

        785151 => array('id' => '785151', 'name' => '新北市', 'poi_code' => '004000200029000785151', 'code_level' => '3', 'district_type' => '0'),
        2910 => array('id' => '2910', 'name' => '新竹市', 'poi_code' => '004000200029000002910', 'code_level' => '3', 'district_type' => '0'),
        42701 => array('id' => '42701', 'name' => '新竹县', 'poi_code' => '004000200029000042701', 'code_level' => '3', 'district_type' => '0'),
        2916 => array('id' => '2916', 'name' => '宜兰县', 'poi_code' => '004000200029000002916', 'code_level' => '3', 'district_type' => '0'),
        2909 => array('id' => '2909', 'name' => '云林县', 'poi_code' => '004000200029000002909', 'code_level' => '3', 'district_type' => '0'),

        2911 => array('id' => '2911', 'name' => '彰化县', 'poi_code' => '004000200029000002911', 'code_level' => '3', 'district_type' => '0'),

        3000 => array('id' => '3000', 'name' => '天津', 'poi_code' => '00400020003000', 'code_level' => '2', 'district_type' => '6'),


        1300 => array('id' => '1300', 'name' => '香港', 'poi_code' => '00400020001300', 'code_level' => '2', 'district_type' => '6'),

        3100 => array('id' => '3100', 'name' => '新疆', 'poi_code' => '00400020003100', 'code_level' => '2', 'district_type' => '5'),
        3103 => array('id' => '3103', 'name' => '阿克苏', 'poi_code' => '004000200031000003103', 'code_level' => '3', 'district_type' => '0'),

        3108 => array('id' => '3108', 'name' => '阿拉尔', 'poi_code' => '004000200031000003108', 'code_level' => '3', 'district_type' => '0'),
        3104 => array('id' => '3104', 'name' => '阿勒泰', 'poi_code' => '004000200031000003104', 'code_level' => '3', 'district_type' => '0'),
        3114 => array('id' => '3114', 'name' => '巴音郭楞', 'poi_code' => '004000200031000003114', 'code_level' => '3', 'district_type' => '0'),

        3106 => array('id' => '3106', 'name' => '博尔塔拉', 'poi_code' => '004000200031000003106', 'code_level' => '3', 'district_type' => '0'),
        3107 => array('id' => '3107', 'name' => '昌吉', 'poi_code' => '004000200031000003107', 'code_level' => '3', 'district_type' => '0'),
        3109 => array('id' => '3109', 'name' => '哈密', 'poi_code' => '004000200031000003109', 'code_level' => '3', 'district_type' => '0'),
        3110 => array('id' => '3110', 'name' => '和田', 'poi_code' => '004000200031000003110', 'code_level' => '3', 'district_type' => '0'),
        3111 => array('id' => '3111', 'name' => '喀什', 'poi_code' => '004000200031000003111', 'code_level' => '3', 'district_type' => '0'),

        3112 => array('id' => '3112', 'name' => '克拉玛依', 'poi_code' => '004000200031000003112', 'code_level' => '3', 'district_type' => '0'),

        3105 => array('id' => '3105', 'name' => '克孜勒苏', 'poi_code' => '004000200031000003105', 'code_level' => '3', 'district_type' => '0'),

        3116 => array('id' => '3116', 'name' => '石河子', 'poi_code' => '004000200031000003116', 'code_level' => '3', 'district_type' => '0'),
        3117 => array('id' => '3117', 'name' => '塔城', 'poi_code' => '004000200031000003117', 'code_level' => '3', 'district_type' => '0'),
        3118 => array('id' => '3118', 'name' => '吐鲁番', 'poi_code' => '004000200031000003118', 'code_level' => '3', 'district_type' => '0'),
        3113 => array('id' => '3113', 'name' => '图木舒克', 'poi_code' => '004000200031000003113', 'code_level' => '3', 'district_type' => '0'),
        3115 => array('id' => '3115', 'name' => '五家渠', 'poi_code' => '004000200031000003115', 'code_level' => '3', 'district_type' => '0'),
        3102 => array('id' => '3102', 'name' => '乌鲁木齐', 'poi_code' => '004000200031000003102', 'code_level' => '3', 'district_type' => '0'),

        784330 => array('id' => '784330', 'name' => '东山区', 'poi_code' => '0040002000310000031020784330', 'code_level' => '4', 'district_type' => '0'),
        3119 => array('id' => '3119', 'name' => '伊犁', 'poi_code' => '004000200031000003119', 'code_level' => '3', 'district_type' => '0'),
        3200 => array('id' => '3200', 'name' => '西藏', 'poi_code' => '00400020003200', 'code_level' => '2', 'district_type' => '5'),
        3203 => array('id' => '3203', 'name' => '阿里', 'poi_code' => '004000200032000003203', 'code_level' => '3', 'district_type' => '0'),
        3204 => array('id' => '3204', 'name' => '昌都', 'poi_code' => '004000200032000003204', 'code_level' => '3', 'district_type' => '0'),
        3202 => array('id' => '3202', 'name' => '拉萨', 'poi_code' => '004000200032000003202', 'code_level' => '3', 'district_type' => '0'),
        3205 => array('id' => '3205', 'name' => '林芝', 'poi_code' => '004000200032000003205', 'code_level' => '3', 'district_type' => '0'),
        3206 => array('id' => '3206', 'name' => '那曲', 'poi_code' => '004000200032000003206', 'code_level' => '3', 'district_type' => '0'),
        3207 => array('id' => '3207', 'name' => '日喀则', 'poi_code' => '004000200032000003207', 'code_level' => '3', 'district_type' => '0'),

        3208 => array('id' => '3208', 'name' => '山南', 'poi_code' => '004000200032000003208', 'code_level' => '3', 'district_type' => '0'),

        3300 => array('id' => '3300', 'name' => '云南', 'poi_code' => '00400020003300', 'code_level' => '2', 'district_type' => '5'),
        3304 => array('id' => '3304', 'name' => '保山', 'poi_code' => '004000200033000003304', 'code_level' => '3', 'district_type' => '0'),
        3305 => array('id' => '3305', 'name' => '楚雄', 'poi_code' => '004000200033000003305', 'code_level' => '3', 'district_type' => '0'),
        3306 => array('id' => '3306', 'name' => '大理', 'poi_code' => '004000200033000003306', 'code_level' => '3', 'district_type' => '0'),

        3314 => array('id' => '3314', 'name' => '德宏', 'poi_code' => '004000200033000003314', 'code_level' => '3', 'district_type' => '0'),
        784444 => array('id' => '784444', 'name' => '畹町镇', 'poi_code' => '0040002000330000033140784444', 'code_level' => '4', 'district_type' => '0'),

        3320 => array('id' => '3320', 'name' => '迪庆', 'poi_code' => '004000200033000003320', 'code_level' => '3', 'district_type' => '0'),
        3308 => array('id' => '3308', 'name' => '红河', 'poi_code' => '004000200033000003308', 'code_level' => '3', 'district_type' => '0'),
        3302 => array('id' => '3302', 'name' => '昆明', 'poi_code' => '004000200033000003302', 'code_level' => '3', 'district_type' => '0'),
        3312 => array('id' => '3312', 'name' => '丽江', 'poi_code' => '004000200033000003312', 'code_level' => '3', 'district_type' => '0'),
        3311 => array('id' => '3311', 'name' => '临沧', 'poi_code' => '004000200033000003311', 'code_level' => '3', 'district_type' => '0'),
        3313 => array('id' => '3313', 'name' => '怒江', 'poi_code' => '004000200033000003313', 'code_level' => '3', 'district_type' => '0'),

        3315 => array('id' => '3315', 'name' => '曲靖', 'poi_code' => '004000200033000003315', 'code_level' => '3', 'district_type' => '0'),

        3316 => array('id' => '3316', 'name' => '普洱', 'poi_code' => '004000200033000003316', 'code_level' => '3', 'district_type' => '0'),
        3317 => array('id' => '3317', 'name' => '文山', 'poi_code' => '004000200033000003317', 'code_level' => '3', 'district_type' => '0'),
        3318 => array('id' => '3318', 'name' => '西双版纳', 'poi_code' => '004000200033000003318', 'code_level' => '3', 'district_type' => '0'),
        3319 => array('id' => '3319', 'name' => '玉溪', 'poi_code' => '004000200033000003319', 'code_level' => '3', 'district_type' => '0'),

        3321 => array('id' => '3321', 'name' => '昭通', 'poi_code' => '004000200033000003321', 'code_level' => '3', 'district_type' => '0'),
        3400 => array('id' => '3400', 'name' => '浙江', 'poi_code' => '00400020003400', 'code_level' => '2', 'district_type' => '5'),
        3402 => array('id' => '3402', 'name' => '杭州', 'poi_code' => '004000200034000003402', 'code_level' => '3', 'district_type' => '0'),
        3409 => array('id' => '3409', 'name' => '湖州', 'poi_code' => '004000200034000003409', 'code_level' => '3', 'district_type' => '0'),
        3410 => array('id' => '3410', 'name' => '嘉兴', 'poi_code' => '004000200034000003410', 'code_level' => '3', 'district_type' => '0'),
        3411 => array('id' => '3411', 'name' => '金华', 'poi_code' => '004000200034000003411', 'code_level' => '3', 'district_type' => '0'),
        3414 => array('id' => '3414', 'name' => '丽水', 'poi_code' => '004000200034000003414', 'code_level' => '3', 'district_type' => '0'),
        3415 => array('id' => '3415', 'name' => '宁波', 'poi_code' => '004000200034000003415', 'code_level' => '3', 'district_type' => '0'),
        3422 => array('id' => '3422', 'name' => '绍兴', 'poi_code' => '004000200034000003422', 'code_level' => '3', 'district_type' => '0'),
        3424 => array('id' => '3424', 'name' => '台州', 'poi_code' => '004000200034000003424', 'code_level' => '3', 'district_type' => '0'),
        3426 => array('id' => '3426', 'name' => '温州', 'poi_code' => '004000200034000003426', 'code_level' => '3', 'district_type' => '0'),
        3419 => array('id' => '3419', 'name' => '衢州', 'poi_code' => '004000200034000003419', 'code_level' => '3', 'district_type' => '0'),
        3427 => array('id' => '3427', 'name' => '舟山', 'poi_code' => '004000200034000003427', 'code_level' => '3', 'district_type' => '0'),

        /*国外常用*/
        3604 => array('id' => '3604', 'name' => '法国', 'poi_code' => '00036000003604', 'code_level' => '2', 'district_type' => '3'),
        3738 => array('id' => '3738', 'name' => '美国', 'poi_code' => '00037000003738', 'code_level' => '2', 'district_type' => '3'),
        3900 => array('id' => '3900', 'name' => '亚洲', 'poi_code' => '0003900', 'code_level' => '1', 'district_type' => '1'),
        3904 => array('id' => '3904', 'name' => '韩国', 'poi_code' => '00039000003904', 'code_level' => '2', 'district_type' => '3'),
        3905 => array('id' => '3905', 'name' => '日本', 'poi_code' => '00039000003905', 'code_level' => '2', 'district_type' => '3'),
        3910 => array('id' => '3910', 'name' => '泰国', 'poi_code' => '00039000003910', 'code_level' => '2', 'district_type' => '3'),
        45398 => array('id' => '45398', 'name' => '曼谷', 'poi_code' => '000390000039100045398', 'code_level' => '3', 'district_type' => '0'),
        785093 => array('id' => '785093', 'name' => '普吉市', 'poi_code' => '0003900000391000454100785093', 'code_level' => '4', 'district_type' => '0'),
    );

    public function __construct()
    {
        parent::__construct();
        $this->table  = $this->db->dbprefix("area");
    }

    public function get_area_by_id($id, $order = 'district_type ASC')
    {
        $retval = array();

        if($id == 0){
            return $this->get_continent();
        }

        $query = $this->db->query("SELECT * FROM {$this->table} WHERE id=? LIMIT 1", array($id));
        $code_row = $query->row_array();
        if(!empty($code_row))
        {
            $poi_code   = $code_row['poi_code'];
            $code_level = $code_row['code_level']+1;

            if($id == 40002){
                $code_level --;
                $poi_code = '0040002';
            }

            $query = $this->db->query("SELECT * FROM {$this->table} WHERE code_level=? AND poi_code LIKE ? ORDER BY $order", array(
                $code_level,
                $poi_code . '%',
            ));
            $retval = $query->result_array();
        }

        return $retval;
    }

    public function get_area_by_pinyin($pinyin)
    {
        $retval = array();

        $query = $this->db->query("SELECT * FROM {$this->table} WHERE pinyin=? LIMIT 1", array(
            $pinyin,
        ));
        if ($query->num_rows() > 0) {
            $retval = $query->result_array();
        }
        return $retval;
    }

    /**
     * @return array
     */
    public function get_continent()
    {
        $retval = array (
            0 =>
                array (
                    'sid' => '0',
                    'id' => '3900',
                    'name' => '亚洲',
                    'poi_code' => '0003900',
                    'code_level' => '1',
                    'district_type' => '1',
                ),
            1 =>
                array (
                    'sid' => '0',
                    'id' => '3600',
                    'name' => '欧洲',
                    'poi_code' => '0003600',
                    'code_level' => '1',
                    'district_type' => '1',
                ),
            2 =>
                array (
                    'sid' => '0',
                    'id' => '4100',
                    'name' => '大洋洲',
                    'poi_code' => '0004100',
                    'code_level' => '1',
                    'district_type' => '1',
                ),
            3 =>
                array (
                    'sid' => '0',
                    'id' => '3700',
                    'name' => '北美洲',
                    'poi_code' => '0003700',
                    'code_level' => '1',
                    'district_type' => '1',
                ),
            4 =>
                array (
                    'sid' => '0',
                    'id' => '4000',
                    'name' => '非洲',
                    'poi_code' => '0004000',
                    'code_level' => '1',
                    'district_type' => '1',
                ),
            5 =>
                array (
                    'sid' => '0',
                    'id' => '3800',
                    'name' => '南美洲',
                    'poi_code' => '0003800',
                    'code_level' => '1',
                    'district_type' => '1',
                ),
        );
        return $retval;
        /*$retval = array();
        $query = $this->db->query("SELECT * FROM {$this->table} WHERE code_level=1 AND district_type=1 ORDER BY id DESC");
        if ($query->num_rows() > 0) {
            $retval = $query->result_array();
        }
        return $retval;*/
    }

    public function get_area_name($aids = array(), $retstr = true)
    {
        if($aids == array(-1)){
            return null;
        }
        $retval = array();

        static $dists = array();
        $retstrkey = $retstr ? 'yes' : 'no';
        $key = md5(rtrim(implode(', ', $aids),', '));
        if(isset($dists[$retstrkey][$key])){
            return $dists[$retstrkey][$key];
        }

        foreach ($aids as $k => $id) {
            if($id == 0 || $id == -1){
                unset($aids[$k]);
                continue;
            }
            if(isset(self::$area[$id])){
                $retval[] = self::$area[$id];
                unset($aids[$k]);
            }
        }

        if($aids){
            $aid = rtrim(implode(', ', $aids),', ');
            $query = $this->db->query("SELECT * FROM {$this->table} WHERE id IN ($aid) ORDER BY code_level ASC, poi_code ASC");

            if ($query->num_rows() > 0) {
                $retval = array_merge($retval,$query->result_array());
            }
        }//var_export($retval);
        if($retstr)
        {
            $retstr = '';
            foreach ($retval as $row)
            {
                $retstr .= '['.$row['name'].']';
            }
        }
        else
        {
            $retstr = array();
            foreach ($retval as $row)
            {
                $retstr[$row['id']] = $row['name'];
            }
        }

        $dists[$retstrkey][$key] = $retstr;

        return $retstr;
    }

    public function get_siblings($id, $with_parent = FALSE)
    {
        $query = $this->db->query("SELECT code_level,poi_code FROM {$this->table} WHERE id=$id");
        $retval = $query->row_array();
        if(empty($retval))
        {
            return array();
        }
        $poi_code = $retval['poi_code'];
        $code_level = $retval['code_level']-1;
        $poi_code = substr($poi_code, 0, -7);

        if($with_parent){
            $cmp = "code_level>=$code_level AND code_level<=".($code_level+1);
        }else{
            $cmp = "code_level>$code_level AND code_level<=".($code_level+1);
        }
        $sql = "SELECT * FROM {$this->table} WHERE $cmp AND poi_code LIKE '$poi_code%' ORDER BY code_level ASC, poi_code ASC";
        $query = $this->db->query($sql);
        return $query->result_array();
    }
}